Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update deno2node, fix docs, add suggestions to sendDice #626

Merged

Conversation

rayz1065
Copy link
Member

The JSDocs for api.sendDice and ctx.replyWithDice were missing '🎳' so I brought them up to date with the latest changes on https://core.telegram.org/bots/api#senddice.
I also added suggestions for the parameter emoji following the style in sendChatAction. It might be reasonable to remove | (string & Record<never, never>) but I didn't want to introduce a breaking change.

I also fixed two JSDocs with an incorrect link to the documentation.

@KnorpelSenf
Copy link
Member

Can you fix the formatting?

@KnorpelSenf
Copy link
Member

Hang on, it's actually not related to these changes, I'll investigate

@KnorpelSenf
Copy link
Member

I guess we can just disable the lint until we support node:http as an adapter on Deno

@KnorpelSenf KnorpelSenf changed the title Fixed a few outdated jsdocs, added suggestions to sendDice build: update deno2node, fix docs, add suggestions to sendDice Aug 31, 2024
Copy link
Member

@KnorpelSenf KnorpelSenf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it up. Thanks!

@KnorpelSenf KnorpelSenf merged commit faf5633 into grammyjs:main Aug 31, 2024
6 checks passed
@KnorpelSenf
Copy link
Member

@rayz1065 please consider signing your commits in the future. We usually require this from all contributions, but I made an exception now and merged anyway.

@all-contributors add @rayz1065 for the idea and the code!

Copy link
Contributor

@KnorpelSenf

I've put up a pull request to add @rayz1065! 🎉

KnorpelSenf referenced this pull request in grammyjs/types Aug 31, 2024
@rayz1065 rayz1065 deleted the update-jsdocs-add-dice-suggestions branch August 31, 2024 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants